/*
* @Author: Administrator
* @Date:   2018-09-08 14:44:53
* @Last Modified by:   Administrator
* @Last Modified time: 2018-09-09 09:35:10
*/
 import { createStore, applyMiddleware, compose } from 'redux';
 import reducer from './reducer.js';
 import thunk from 'redux-thunk';

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducer,composeEnhancers(
  applyMiddleware(thunk)
));

export default store;